Update user profile
PuT /api/v1/Profiles/update-profile
Description
This endpoint is used to update a user's profile.
Tags: Profiles
URL:
/api/v{version}/Profiles/update-profile
ApiKey:
No API key required
Content-Type:
application/json, text/json, application/*+json
Query Parameters:
version: string, required
Accept-Language: header, optional, change the default response message language from English(en) to French(fr) or English(en)
Request Body:
UpdateAccountRequest
Response:
Success, returns a UpdateAccountResponseResponse object containing updated information about the user's profile.
Error Codes:
400: Bad Request
404: Not Found
/api/v1/Profiles/update-profile
Headers
| Content-Type | Value |
|---|---|
| Accept-Language |
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Headers
| Content-Type | Value |
|---|---|
| Accept | text/plain |
Body (raw)
{
"firstName": `<string>`,
"lastName": `<string>`,
"phoneCode": `<string>`,
"phoneNumber": `<string>`,
"userId": `<string>`
}
Response: 200
{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": {
"userId": `<string>`
}
}
LANGUAGE
CURL REQUEST
curl --request PuT \
--url /api/v1/Profiles/update-profile \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!